/**
 * @author Xiang.Yu
 * @version 0.0.1
 * @date 2017/3/6
 * @description faker
 */
const dataEntity ={
    model:{
        remarks:'',
        createdBy:'',
        createDate:'',
        updateBy:'',
        updateDate:'',
        delFlag:''
    }
};

const sys = {
    User: {model: {id: "", name: "", loginFlag: "1", admin: false, roleNames: ""}}
};
const Customer = {
    model: {
        id:'',
        name: '',		// 名称
        sysUser: sys.User.model,		// 负责人 User
        vip: '',		// 客户级别
        source: '',		// 客户来源
        classify: '',
        status: '',	// 客户状态
        phone: '',		// 电话
        website: '',	// 网址
        fax: '',		// 传真
        zip: '',		// 邮编
        place: '',		// 地址
        longitude: 0.0,		// 标记位置经度double
        latitude: '',		// 标记位置纬度double
        pictures: '',		// 图片
        files: '',		// 附件
        remarks: '',
        ...dataEntity.model
    },
    validation: {
        name: {msg: '', required: true},
        sysUser: {msg: '', required: true},		// 负责人 User
        vip: {msg: '', required: true},		// 客户级别
        source: {msg: '', required: true},		// 客户来源
        classify: {msg: '', required: true},
        status: {msg: '', required: true},	// 客户状态
    }
};
const crm = {
    Customer
};

const state = {
    crm,
    sys
};
export default {
    state
}
